import request from '@/utils/request'

// 查询来料检验列表
export function listMaterialCheck(query) {
  return request({
    url: '/mes/materialCheck/list',
    method: 'get',
    params: query
  })
}

// 查询来料检验详细
export function getMaterialCheck(id) {
  return request({
    url: '/mes/materialCheck/' + id,
    method: 'get'
  })
}

export function querySelectOption() {
  return request({
    url: '/mes/materialCheck/selectOption',
    method: 'get'
  })
}

// 新增来料检验
export function addMaterialCheck(data) {
  return request({
    url: '/mes/materialCheck',
    method: 'post',
    data: data
  })
}

// 修改来料检验
export function updateMaterialCheck(data) {
  return request({
    url: '/mes/materialCheck',
    method: 'put',
    data: data
  })
}

// 删除来料检验
export function delMaterialCheck(id) {
  return request({
    url: '/mes/materialCheck/' + id,
    method: 'delete'
  })
}

// 导出来料检验
export function exportMaterialCheck(query) {
  return request({
    url: '/mes/materialCheck/export',
    method: 'get',
    params: query
  })
}
